package com.example.attempt.mapper;

import com.example.attempt.entity.Course;
import com.example.attempt.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {
    public List<Course> queryAll();
    public Course queryById(String cid);
    public List<Course> queryByTeacher(String cid);
    public int getNum();
    public int addCourse(Course c);
    public void deleteCourse(String cid);
    public void changeTeacher(String cid, String tid);
    public List<Student> getNotInCourse(String cid);
    public List<Course> queryByRoom(String croom);
}
